from sqlalchemy import Column, Integer, String, DateTime

from datetime import datetime

from module_admin.entity.do.base import db


class Course(db.Model):
    __tablename__ = 'sys_course'

    id = Column(Integer, primary_key=True, autoincrement=True, comment='课程ID')
    name = Column(String(100, collation='utf8_general_ci'), nullable=False, unique=True, default='IT Course',
                  comment='课程名称')
    description = Column(String(500, collation='utf8_general_ci'), nullable=True, comment="课程描述")

